<template>
	<view @click="jump">
		<u-search placeholder="请输入搜索" v-model="keyword" ></u-search>
	</view>
</template>

<script>
	import API from '../../../congif/api.js';
	export default {
		props:['goodsCount'],
		name:"Search",
		data() {
			return {
				keyword:''
			};
		},
		onLoad() {
			uni.request({
				url:API.goodsCount,
				success: (res) => {
					console.log(res)
					this.keyword=res.data.data
				}
			})			
	
		},
		methods:{
			jump(){
				uni.$u.route('/pages/category/searchpage/searchpage');
			
			}
		}
	}
</script>

<style lang="scss">

</style>
